{layout name="daili/layout"}
<main class="app-content">
  <div class="app-title">

    <ul class="app-breadcrumb breadcrumb">
      <li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
      <li class="breadcrumb-item">代理后台</li>
      <li class="breadcrumb-item"><a href="#">下级用户</a></li>
    </ul>
  </div>
  <div class="row">

  
        <div class="col-md-12">
                <div class="tile">
                  <h3 class="tile-title">用户列表</h3>
                  <div class="table-responsive">
                    <table class="table">
                      <thead>
                        <tr>
                          <th>#</th>
                          <th>用户名</th>
                          <th>注册时间</th>
                          <th>我的收益</th>
                        </tr>
                      </thead>
                      <tbody>
                        {foreach $data as $v}
                        <tr>
                          <td>{$v->user_id}</td>
                          <td>{$v->user_name}</td>
                          <td>{$v->user_reg_time}</td>
                          <td>{$v->money}</td>
                        </tr>
                        {/foreach}
                       
                      </tbody>
                    </table>
                    
                    <div id="pages">
                            {$data->render()}
                        </div>
                       
                    
                        <script>  
                          $("#pages li span").attr('class','page-link');
                          $("#pages li a").each((e,q)=>{
                              console.log();
                              if(typeof( $(q).attr('class')) == 'undefined'){
                                $(q).attr('class',' page-link');
                              }else{
                                $(q).attr('class',$(q).attr('class')+' page-link');
                              }
                          })
                        </script>

                  </div>
                </div>
              </div>


  </div>
</main>